package com.zkthink.ceres.promotion.controller;

import com.zkthink.base.controller.QueryController;
import com.zkthink.base.service.SuperService;
import com.zkthink.ceres.promotion.dto.PromotionAuditLogPageDTO;
import com.zkthink.ceres.promotion.entity.PromotionAuditLog;
import com.zkthink.ceres.promotion.service.PromotionAuditLogService;
import com.zkthink.security.annotation.PreAuth;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 前端控制器 营销活动申请日志表
 * </p>
 *
 * @author kellen
 * @date 2020-06-27
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/promotionAuditLog")
@Api(value = "PromotionAuditLog", tags = "营销活动申请日志")
//@PreAuth(replace = "promotionAuditLog:")
@AllArgsConstructor
public class PromotionAuditLogController implements
    QueryController<PromotionAuditLog, Long, PromotionAuditLogPageDTO> {

  private PromotionAuditLogService promotionAuditLogService;

  @Override
  public Class<PromotionAuditLog> getEntityClass() {
    return PromotionAuditLog.class;
  }

  @Override
  public SuperService<PromotionAuditLog> getBaseService() {
    return promotionAuditLogService;
  }
}
